#ifndef _PAGEITEMSVIEW_H_
#define _PAGEITEMSVIEW_H_

#include <QList>

#include <UIKit/UIViewController.h>
#include <UIKit/UIView.h>
class AppIconView;

class PageItemsView : public UIView {
    public:
        PageItemsView (QGraphicsItem *parent = 0);
        ~PageItemsView();

        void addIconView (AppIconView *iconView);
        void setCurrentPage (quint8 currentPage);

        void changeOrientation (bool isLandscape);

    protected:
        void drawRect (QPainter *painter, const QRect& rect);

    protected:
        void swipeEvent (UITouch *touch);

    private:
        QList<AppIconView *> m_appList;
        quint8 m_currentPage;
};

#endif /* !_PAGEITEMSVIEW_H_ */

